<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // class 类
      // Perosn 函数
      class Perosn {
        constructor(name, age) {
          this.name = name;
          this.age = age;
        }
      }
      // function Person(name, age) {
      //   this.name = name;
      //   this.age = age;
      // }
      const p1 = new Perosn("lili", 20);
      const p2 = new Perosn("jack", 21);
      console.log(p1, p2);
    </script>
  </body>
</html>
